home *** CD-ROM | disk | FTP | other *** search
- Path: news.spies.com!usenet
- From: Erik Max Francis <max@alcyone.com>
- Newsgroups: comp.lang.c
- Subject: Re: === GET_CHAR and others ===
- Date: Wed, 03 Apr 1996 08:18:37 -0800
- Organization: Alcyone Systems
- Message-ID: <3162A4DD.EB32411@alcyone.com>
- References: <315FD0E1.41C6@cell.co.uk>
- NNTP-Posting-Host: newton.alcyone.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.01 (X11; I; Linux 1.2.13 i486)
-
- Kai Chan wrote:
-
- > I'm trying to read a character at a time from the keyboard without
- > having to press return everytime. Someone said getch() but it doesn't
- > seem to work, can anyone give me an example or something?
- > I'm working on a IRIX platform.
-
- ANSI C does not allow you to reliably fetch one keyboard character at a time.
- If you want to do this portably, look into a package such as curses.
-
- --
- Erik Max Francis &tSftDotIotE && http://www.alcyone.com/max && max@alcyone.com
- San Jose, California, U.S.A. && 37 20 07 N 121 53 38 W && the 4th R is respect
- H.3`S,3,P,3$S,#$Q,C`Q,3,P,3$S,#$Q,3`Q,3,P,C$Q,#(Q.#`-"C`- && 1love && folasade
- Omnia quia sunt, lumina sunt. && Dominion, GIGO, GOOGOL, Omega, Psi, Strategem
- "Out from his breast/his soul went to seek/the doom of the just." -- _Beowulf_
-